package entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 数据库表 user 的实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User{
    private Integer id;
    private String username;
    private String password;
    private String birth;
    private LocalDateTime creat_time;
    private LocalDateTime last_login;
    private String phone;
    private String email;
    public User(String username){
        this.username = username;
    }
}
